import axios from '@/utils/request'

// 获取用户信息
const getInfo = () => {
  return axios({
    url: '/info',
    method: 'GET'
  })
}

// 退出
const logout = () => {
  return axios({
    url: '/logout',
    method: 'GET'
  })
}

export { getInfo, logout }
